/*
 * Copyright (c) 2021, 2022, yzfh.cn All rights reserved.
 *
 */
package com.ly.service.impl;

import com.ly.dao.RoleDao;
import com.ly.domain.Role;
import com.ly.service.RoleService;

import java.util.List;

/**
 * @author yzfh
 * @Date 2022/02/19 星期六 10:19:55
 */
public class RoleServiceImpl implements RoleService {

    private RoleDao roleDao;

    public void setRoleDao(RoleDao roleDao) {
        this.roleDao = roleDao;
    }

    @Override
    public List<Role> list() {
        List<Role>  list = roleDao.findAll();
        return list;
    }

    @Override
    public void save(Role role) {
        roleDao.save(role);
    }
}
